package service.impl;

import dao.impl.DVDDaoImpl;
import entity.DVD;
import service.IDVDService;

public class DVDServiceImpl implements IDVDService{
	private DVDDaoImpl ddi = new DVDDaoImpl();

	@Override
	public boolean save(DVD dvd) {
		return ddi.save(dvd);
	}

	@Override
	public boolean delete(DVD dvd) {
		return ddi.delete(dvd);
	}

	@Override
	public boolean update(DVD dvd) {
		return ddi.update(dvd);
	}

	@Override
	public DVD selectByName(String name) {
		return ddi.selectByName(name);
	}

	@Override
	public DVD[] selectByType(String type) {
		return ddi.selectByType(type);
	}

	@Override
	public DVD[] selectNoRent() {
		return ddi.selectNoRent();
	}

	@Override
	public DVD[] selectAll() {
		return ddi.selectAll();
	}

	@Override
	public boolean rent(DVD dvd) {
		return ddi.rent(dvd);
	}

	@Override
	public boolean back(DVD dvd) {
		return ddi.back(dvd);
	}

	@Override
	public DVD[] sortByTimes() {
		return ddi.sortByTimes();
	}

}
